package String2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-14
 * Time: 22:58
 */
public class demo9 {
    public static void main(String[] args) {
        String string = "hello";
        string += " world";
        System.out.println(string.toString());

        StringBuilder stringBuilder = new StringBuilder("hello");
        stringBuilder.append(" world");
        System.out.println(stringBuilder.toString());
    }
}
